<?php
/**
 * Created by PhpStorm.
 * User: 陈艺赫
 * Date: 2017/12/10
 * Time: 5:41
 */

namespace Admin\Model;

use Think\Model\RelationModel;

class FileModel extends RelationModel
{
    protected $_link = array(
        'cat' => array(
            'mapping_type' => self::BELONGS_TO,
            'class_name' => 'file_cat',
            'foreign_key' => 'id',
            'mapping_fields'=> 'name',
        )
    );
}